package com.design_pattern._02_structure._04_proxy;

import java.util.Random;

public interface Movable {
    void move();
}

class Tank implements Movable {
    @Override
    public void move() {
        try {
            System.out.println("运行中...");
            Thread.sleep(new Random().nextInt(5000)); // 睡眠时间就是运行时间
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}